From 0cf1aaca0703c1a2eafa82771e12af98b42fa222 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Fri, 15 Aug 2008 21:18:08 +0000 Subject: [PATCH] xmltag: Declare invisible functions as static. --- xmltag.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/xmltag.c b/xmltag.c index 50c4a46ee..7b0471b34 100644 --- a/xmltag.c +++ b/xmltag.c @@ -25,7 +25,8 @@ #include "defs.h" -void free_xml_tag( xml_tag *tag ) +static void +free_xml_tag( xml_tag *tag ) { xml_tag *next = NULL; char **ap; @@ -58,7 +59,8 @@ void free_xml_tag( xml_tag *tag ) } } -void copy_xml_tag( xml_tag **copy, xml_tag *src, xml_tag *parent ) { +static void +copy_xml_tag( xml_tag **copy, xml_tag *src, xml_tag *parent ) { xml_tag *res = NULL; char **ap = NULL; char **ap2 = NULL; @@ -117,7 +119,8 @@ convert_xml_tag( xml_tag *tag ) { fs_xml *fs_xml_alloc( long type ); -void fs_xml_destroy( void *fs ) { +static void +fs_xml_destroy( void *fs ) { fs_xml *xml = (fs_xml *)fs; if ( xml ) { free_xml_tag( xml->tag ); @@ -125,7 +128,8 @@ void fs_xml_destroy( void *fs ) { xfree( fs ); } -void fs_xml_copy( void **copy, void *source ) { +static void +fs_xml_copy( void **copy, void *source ) { fs_xml *src = (fs_xml *)source; if ( !source ) { *copy = NULL; @@ -136,7 +140,8 @@ void fs_xml_copy( void **copy, void *source ) { copy_xml_tag( &(((fs_xml *)(*copy))->tag), src->tag, NULL ); } -void fs_xml_convert( void *fs ) { +static void +fs_xml_convert( void *fs ) { fs_xml *xml = (fs_xml *)fs; if ( xml ) { convert_xml_tag( xml->tag ); -- 2.30.2